explain eulerian and hamiltonian graph with the help of examples